package com.ocom.payhandle.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ocom.common.entity.card.EntityXfPointInfo;
import com.ocom.common.enums.DataSourceEnum;
import com.ocom.mysql.aspect.DataSourceAspect;
import com.ocom.payhandle.dao.IDaoPointInfo;
import com.ocom.payhandle.service.XfPointInfoService;
import org.springframework.stereotype.Service;


@Service
public class XfPointInfoServiceImpl extends ServiceImpl<IDaoPointInfo, EntityXfPointInfo> implements XfPointInfoService {

    @DataSourceAspect(type = DataSourceEnum.PART_DB)
    public EntityXfPointInfo getTollPointInfo(Long companyId,Integer point_id){
        QueryWrapper<EntityXfPointInfo> queryWrapper=new QueryWrapper<>();
        queryWrapper.eq("com_id",companyId);
        queryWrapper.eq("point_id",point_id);
        return this.getOne(queryWrapper);

    }


}
